<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>我要好发网 </title>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link href="/www/css/a.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="/www/js/jquery.js"></script>
  <script type="text/javascript" src="/www/js/w.js"></script>
 </head>

 <body>
	<div id="header" class="clearfix">
		<div class="lw">
			<div class="top clearfix">
				<a class="logo left" href="/">我要好发网</a>
				<a href="javascript:" onclick="addToFavorite()" title="加入收藏夹" class="favorite right">收藏我要好发网</a>
			</div>
			<div class="sign">
				<?if($this->auth->loged):?>
					<?=$this->auth->uname?>，欢迎您来到我要好发网！[<a href="/sign/out" class="asign">退出</a>]
				<?else:?>
					您好，欢迎来到我要好发网！[<a href="/sign" class="asign">请登录</a>]，新用户？[<a href="/sign" class="asign" target="_blank">免费注册</a>]
				<?endif?>
			</div>
			
		</div>
	</div>
	<div id="wrap" class="lw lw1 clearfix ab">
		<h2 class="menu2 clearfix">
			<span>网友评论</span>
			<a href="#comment-fom" class="addcomment">发表评论</a>
		</h2>
		
			<?if($c):?>
			<?foreach($c as $com):?>
				<div class="comment-list clearfix">
					<div class="c-left left"></div>
					<div class="c-center left">
						<p class="title"><?=$com->content?></p>
						<p class="time"><?=$com->time?></p>
					</div>
					<div class="c-right right">
						<?=$com->uname?>
					</div>
				</div>
			<?endforeach;endif;?>
			<p>共<?=$num?>条评论</p>

			<?php echo $page;?>

		<?if($this->auth->loged):?>
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
		<form action="/comment/action/<?=$p->id?>" method="post" id="comment-fom"class="form2">
			<div class="form-item">
				<div class="top">
					<label for="content">留下你的评论</label>
				</div>
				<div class="form-textarea-item tr-off clearfix">
					<textarea name="content" id="content" class="textarea"></textarea>
					<span class="form-border-right"></span>
				</div>

				<div class="footer clearfix">
					<input type="submit" class="button" value="发表看法" />
					<input type="reset" class="cancel" value="取消" />
				</div>
			</div>
		</form>
		<?else:?>
				<p class="do">请先 <a href="/sign/in?url=/comment/action/<?=$p->id?>#comment-form">登录</a>，再发表评论</p>
		<?endif?>

		
	</div>
<?$this->load->view('footer.tpl');?>